<template>
    <div class="footer">
        <div class="item">
            <router-link to="/home" class="nav-item" active-class="active-color">
                <van-icon name="smile-o" />
                首页
            </router-link>
        </div>
        <div class="item">
            <router-link to="/cart" class="nav-item" active-class="active-color">
                <van-icon name="cart-o" />
                购物车
            </router-link>
        </div>
        <div class="item">
            <router-link to="/order" class="nav-item" active-class="active-color">
                <van-icon name="coupon-o" />
                订单
            </router-link>
        </div>
        <div class="item">
            <router-link to="/mine" class="nav-item" active-class="active-color">
                <van-icon name="friends-o" />
                我的
            </router-link>
        </div>
    </div>
</template>
<script>
</script>
<style lange="less">
    .footer{
        display: flex;
        border-top: 0.5px solid #eee;
        padding-top: 10px;
        padding-bottom: 10px;
        background: #fff;
        font-size: 18px;
    }
    .item{
        flex: 1;
    }
    .nav-item{
        display: flex;
        flex-flow: column;
        align-items: center;
    }
    .active-color{
        color: #ff5656;
    }
</style>